﻿using D.B.Data.Domain.Enums;
using D.B.Data.ErrorCode;
using MediatR;

namespace D.B.Data.API.Applications.Command.LeaveCommand
{
    public class AddLeaveCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public long DeptId { get; set; }

        /// <summary>
        /// 请假类型
        /// </summary>
        public WorkflowTypeEnums TypeEnums { get; set; }
        /// <summary>
        /// 请假时间
        /// </summary>

        public DateTime LeaveTIme { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ReportTIme { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>

        public string Desc { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string DeptBoos { get; set; }

        public int SumTime { get; set; }
    }
}
